﻿#include "ccstring.h"
#include "string.h"
#include "covert.h"
#include "N6100.h"
CCString::CCString(char *str){
      strcpy(this->str,str);
}

CCString::CCString(){
      strcpy(this->str,"");
}

void CCString::operator =(char *str){
      strcpy(this->str,str);
    
}

CCString& operator +(CCString & ccstr,char* str1){
      strcat(ccstr.str,str1);
      return ccstr;
}

CCString& operator +(CCString &ccstr,unsigned int num){
      ccstr+itoa(num);
      return ccstr;
}

CCString& operator +(CCString &ccstr,float num){
      ccstr+ftoa(num);
      return ccstr;
}

CCString& operator +=(CCString & ccstr,char* str1){
      ccstr=ccstr+str1;
      return ccstr;
}

CCString& operator +=(CCString &ccstr,unsigned int num){
      ccstr=ccstr+itoa(num);
      return ccstr;
}

CCString& operator +=(CCString &ccstr,float num){
      ccstr=ccstr+ftoa(num);
      return ccstr;
}
